<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<title>Database Admin</title>
		<link rel="Stylesheet" href="${rootContext}/includes/${judo_style_css_document}" type="text/css" />
	</head>
	<body>	
		<div id="page">
			<div id="header">
				<h1>Database Admin</h1>
			</div>
			<div id="navcontainer">
				${judo_menu}<br>
				<jsp:include page="/system/menu.jsp" flush="false"/>
			</div>
			<div id="content">
				
			<h2>Database Admin</h2>
			<p>Please note that this page can only access databases that are connected to
			in this application via a connection type that uses a java.sql.Connection.  For
			example, if the database is connected to via Hibernate, then this feature will
			not work.
			<br>
			<br>
			${validation_errors}
			<form method="POST" action="${rootContext}/system/database_admin/define_schema.do">
				<h3>Select Database</h3>
				<select name="dbNames">
					${html_dbNames}
				</select>
				<br>
				<br>
				<input type="submit" value="Show Schema">
			</form>
			<h4>Database Schema</h4>
			${tableDetails}
			</div>
		</div>
	</body>
</html>